package com.tedu.crmpx.notice.service.impl;

import com.tedu.crmpx.notice.mapper.NoticeMapper;
import com.tedu.crmpx.notice.pojo.dto.NoticeQuery;
import com.tedu.crmpx.notice.pojo.dto.NoticeSaveParam;
import com.tedu.crmpx.notice.pojo.vo.NoticeVO;
import com.tedu.crmpx.notice.service.NoticeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
@Slf4j
public class NoticeServiceImpl implements NoticeService {
    @Autowired
    NoticeMapper noticeMapper;
    @Override
    public List<NoticeVO> loadNotice(NoticeQuery noticeQuery) {
        log.debug("保存公告业务:{}",noticeQuery);
        List<NoticeVO> list = noticeMapper.select(noticeQuery);
        return list;
    }
}
